package com.xry.healthy.service.impl;

import com.xry.common.core.domain.R;
import com.xry.healthy.entity.QhMedicalData;
import com.xry.healthy.mapper.DiseaseMapper;
import com.xry.healthy.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：ypc
 * @Date：2023/9/30
 * @Description：
 */
@Service
public class DiseaseServiceImpl implements DiseaseService {
    @Autowired
    private DiseaseMapper diseaseMapper;

    @Override
    public R illness(Long id) {
        List<QhMedicalData> list=diseaseMapper.illness(id);
        return R.ok(list);
    }

    @Override
    public R illInfo(Long id) {
        QhMedicalData info =diseaseMapper.info(id);
        return R.ok(info);
    }
}
